package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
	"tuowei.com/app/api/apis"
	"tuowei.com/common/middleware"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerApiTestRecordRouter)

}

func registerApiTestRecordRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	api := apis.ApiTestRecord{}
	v1.Use(authMiddleware.MiddlewareFunc()).Use(middleware.CheckLogin)
	group := v1.Group("/test-record")
	// 我的❌题
	group.GET("/practice/list", api.PracticeRecordList)
	group.GET("/mock/examination/record", api.MockExaminationList)

}
